home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3738 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  36 lines

  1. Newsgroups: comp.sys.sgi.misc,comp.lang.c,comp.unix.programmer
  2. Path: in2.uu.net!bii!jem
  3. From: jem@bii.bruker.com (Joe Meier)
  4. Subject: memory management in UNIX (SGI IRIX)
  5. Message-ID: <DM0Jv9.9F4@bii.bruker.com>
  6. Organization: Bruker Instruments, Inc.
  7. Date: Tue, 30 Jan 1996 21:33:09 GMT
  8.  
  9.    We have a problem with a program running under UNIX (SGI IRIX 5.x).  
  10. It uses X11 for a graphical user interface.  
  11. The program allocates and frees large amounts of memory for data 
  12. (sometimes chunks as big as 20M).  The problem is that in a relatively
  13. short time the system runs out of swap sapce and we have to kill the program.
  14. We have investigated the problem and it seems to be that the allocated memory
  15. is getting segmented, so that even though the memory is freed by calls to
  16. "free", the next malloc does not necessairly use the freed space because it
  17. cannot find a large enough contiguous block and instead allocates more from
  18. the system.  When we were working with smaller data sizes this was not a 
  19. problem, but the bigger data sizes is causing some svere problems.  The 
  20. first question is whether anyone else has encountered similar problems
  21. and what caused them and how they solved it?  Also, I wanted to know if 
  22. there exists any intelligant memory managers that will move memory blocks
  23. in order to keep all the free space in on contiguous location?  I think this
  24. would go a long way towards solving our problems???  Of-course if anyone 
  25. has other sugestions for what the cause of our problems are, they would be
  26. greatly appreciated.
  27.  
  28.    Since, I am cross posting this to several news groups, I ask that
  29. responses be e-mailed directly to me (at jem@bruker.com) so that I can more
  30. eaisly keep track of them.  I will post a summary (for those interested) once
  31. I have complied the responses.
  32.  
  33. Thanks for the help,
  34.  
  35. Joe Meier
  36.